package com.ncu.web.util;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.TimeZone;

/**
 * @Author:大润发杀鱼匠
 * @Date:2024/5/31 9:48 web
 */


public class Util {

    public static String toRealTime(Timestamp timestamp) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        sdf.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
        return sdf.format(timestamp);
    }
}
